package com.limao.CacheManager;

import javax.servlet.AsyncContext;
import javax.servlet.http.HttpServletResponse;

import com.limao.DBDataClass.UserAddressDataClass;
import com.limao.Model.LzPluginException;
import com.limao.Model.PublicData;
import com.limao.Model.RecvData;
import com.limao.Tool.CacheClass;

public class AddressInfo {


	//&新鲜宝  
	public static Object load_User_Address_UserDef(HttpServletResponse response,AsyncContext asyncContext,int m,RecvData DataObj) throws LzPluginException
	{
		int id=CacheClass.getIntValue(DataObj.userid);
		
		UserAddressDataClass tmp0 = CacheClass.getUSER_addressCacheManager().load_User_Address_UserDef(id);
		if (tmp0 == null) {
			throw new LzPluginException("数据操作出错");
		}

		// 生成result包给用户
		PublicData data = new PublicData();
		data.state = "1";
		data.m = m + "";
		data.info = "获取成功";
		data.obj = tmp0;

		return data;
		
	}



}
